package io.renren.modules.vastFinance.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.vastFinance.dao.LoginlogDao;
import io.renren.modules.vastFinance.entity.LoginlogEntity;
import io.renren.modules.vastFinance.service.LoginlogsService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Description:
 * @Author: syh
 * @CreateTime: 2022/5/26 14:38
 */
@Service("loginlogsService")
public class LoginlogServiceImpl extends ServiceImpl<LoginlogDao, LoginlogEntity> implements LoginlogsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LoginlogEntity> page = this.page(
                new Query<LoginlogEntity>().getPage(params),
                new QueryWrapper<LoginlogEntity>()
        );

        return new PageUtils(page);
    }
}
